function jiesuan() {
	var s = document.getElementById("cartList");
	var ul = s.children;
	var str = "<p>您本次购买的商品信息如下:</p>"
	var st = "";
	for (var i = 1; i < ul.length - 1; i++) {
		var bookname = ul[i].children[1].innerHTML;
		var price = ul[i].children[2].lastElementChild.value;
		var num = ul[i].children[3].children[1].value;
		var sum = price * num;
		st += bookname + "&nbsp;&nbsp; &nbsp; &nbsp;  " + num +"本，总价：&nbsp; &nbsp; "+ " ￥" + sum + "<br />"
	}
	str += st;
	document.getElementById("footer").innerHTML = str;
}